package com.pan.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pan.domain.AopLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

@Mapper
public interface AopLogDao extends BaseMapper<AopLog> {
    @Insert("insert into tbl_aoplog values (null,#{title},#{businessType},#{status},#{optParam},#{errorMsg},#{operTime},#{username},#{uri},#{ip})")
    Boolean saveLogMsg(String title, int businessType,int status, String optParam, String errorMsg, Date operTime,String username,String uri,String ip);

    @Select("select * from tbl_aoplog")
    List<AopLog> seeAllAop();
}
